class StatistiquesController < ApplicationController

def index
	@salles = Salle.all
	@types = TypeIncident.all
	@incidents = Incident.all
	@machines = Machine.all
	
    respond_to do |format|
      format.html {render :layout => 'layout'} # index.html.erb
    end
  end
  
   def show
    @incidents = Incident.all(:conditions =>{:type_incident_id => params[:id]})
	@type_incident = TypeIncident.find(params[:id])
  
	respond_to do |format|
      format.html {render :layout => 'layout'} # show.html.erb
      format.xml  { render :xml => @incidents }
    end
  end
  
  
  
end

